package com.zzw.service.interfaces;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zzw.bean.Student;
import com.zzw.bean.User;
import com.zzw.mapper.StudentMapper;
import com.zzw.mapper.UserMapper;
import com.zzw.service.imple.IStudentService;
@Service
public class StudentServiceImple implements IStudentService {
	
	@Autowired
	StudentMapper mapper;

	public List<Student> selectStudent(Student student) {
		// TODO Auto-generated method stub
		return mapper.selectStudent(student);
	}

	public void addStudent(Student student) {
		mapper.addStudent(student);
		
	}

	public void deleteStudent(Integer id) {
		mapper.deleteStudent(id);
		
	}

	public Student selectStudentById(Integer id) {
		// TODO Auto-generated method stub
		return mapper.selectStudentById(id);
	}

	public void updateStudent(Student student) {
		mapper.updateStudent(student);
		
	}



	

	
	
	
	

	

}
